import request from '../utils/request';

// 首页获取新闻
export const getNewsData = (data) => {
  return request.post(`/project/news/getNewsByCondition`, { data });
};

export const getNewsDetail = (params) => {
  return request.get(`/project/news/getNewsById`, { params });
};
